package com.example.dao;

import com.example.model.pojo.Discussion;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.transaction.Transactional;
import java.util.List;

public interface DiscussDao extends JpaRepository<Discussion,Integer> {
    Page<Discussion> findAll(Pageable pageable);
    List<Discussion> findAllByUid(Integer uid);
    Discussion getById(Integer id);
    int countBy();

}
